package com.mt.edu.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 类名称：QuestionOption <br>
 * 类描述： 试题选项<br>
 * 创建人： 马腾 <br>
 * 创建时间：Apr 28, 2014 10:03:43 PM <br>
 * 修改人： 马腾 <br>
 * 修改时间：Apr 28, 2014 10:03:43 PM <br>
 */
@Entity
@Table(name="OL_QUESTION_AN_OPTION")
public class QuestionOption implements Serializable {

	private static final long serialVersionUID = 7321113402922290284L;
	
	private String id;
	private Question question;
	private String serialNumber;
	private String desc;
	private Boolean isCorrectAnswer;
	private Date createDt;
	private Date updateDt; 
	private String operator;
	
	@Id
	@Column(name = "ANSWER_OPTION_ID")
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name = "QUESTION_ID")
	public Question getQuestion() {
		return question;
	}
	public void setQuestion(Question question) {
		this.question = question;
	}
	
	@Column(name = "SERIAL_NUMBER")
	public String getSerialNumber() {
		return serialNumber;
	}
	public void setSerialNumber(String serialNumber) {
		this.serialNumber = serialNumber;
	}
	
	@Column(name = "AOPTION_DESC")
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	@Column(name = "IS_CORRECT_ANSWERS")
	public Boolean getIsCorrectAnswer() {
		return isCorrectAnswer;
	}
	public void setIsCorrectAnswer(Boolean isCorrectAnswer) {
		this.isCorrectAnswer = isCorrectAnswer;
	}
	
	@Column(name = "CREATE_DT")
	public Date getCreateDt() {
		return createDt;
	}
	public void setCreateDt(Date createDt) {
		this.createDt = createDt;
	}
	
	@Column(name = "UPDTE_DT")
	public Date getUpdateDt() {
		return updateDt;
	}
	public void setUpdateDt(Date updateDt) {
		this.updateDt = updateDt;
	}
	
	@Column(name = "OPERATOR")
	public String getOperator() {
		return operator;
	}
	public void setOperator(String operator) {
		this.operator = operator;
	}
}
